﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MyVideoAlbumsManage.aspx.cs"
    Inherits="Face.Web.VideoPage.MyVideoAlbumsManage" %>

<!DOCTYPE html>
<html lang="en">
<head id="Head1" runat="server">
    <meta charset="utf-8" />
    <title>我的专辑管理</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="description" content="" />
    <meta name="author" content="" />
    <link href="../css/bootstrap.min.css" rel="stylesheet" media="screen" />
    <style type="text/css">
        body
        {
            padding-bottom: 40px;
        }
        p
        {
            margin-top: 1px;
            margin-bottom: 1px;
        }
    </style>
    <link href="../css/bootstrap-responsive.min.css" rel="stylesheet" media="screen" />
    <link href="../css/videoPage.css" rel="stylesheet" media="screen" />
</head>
<body>
    <form id="form1" runat="server">
    <%--这是顶上的导航栏--%>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="row">
        <div class="span12">
            <div class="row">
                <div class="span3 offset1">
                    <p>
                        <a href="../index.aspx">
                            <img src="/img/logo.png" alt="GatherContent logo"></a></p>
                </div>
                <div class="span2 pull-right">
                    &nbsp
                    <div class="span3">
                        <div class="row">
                            <div class="span1">
                                <a href="/index.aspx" class=""><span style="color: Gray; font-size: small">主页</span></a>
                            </div>
                            <%if (Session["user"] == null)
                              {%>
                            <div class="span1">
                                <a href="/login_and_signup/signup.aspx">现在就注册</a>
                            </div>
                            <div class="span1">
                                <a href="/login_and_signup/login.aspx" class="btn btn-inverse btn-mini">登录</a>
                            </div>
                            <%
                                }
                              else
                              {%>
                            <div class="btn-group">
                                <a class="btn btn-mini dropdown-toggle ajax-dropdown-toggle" data-toggle="dropdown"
                                    href="#"><span>
                                        <%=Session["user"].ToString()%></span> <span class="caret"></span></a>
                                <ul class="dropdown-menu pull-right">
                                    <li>
                                        <asp:LinkButton ID="LinkButton1" CssClass="item" runat="server" OnClick="btn_logout">Logout</asp:LinkButton></li>
                                </ul>
                            </div>
                            <%} %>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="navbar navbar-inverse">
        <div class="navbar-inner">
            <div class="container">
                <div class="row">
                    <div class="span10 offset1">
                        <ul class="nav">
                            <li class=""><a href="/Pic_and_article/picture.aspx"><i class="icon-camera icon-white section-icon">
                            </i>图片</a> </li>
                            <li class=""><a href="/Pic_and_article/articalList.aspx" class="overview"><i class="icon-pencil icon-white section-icon">
                            </i>文章</a> </li>
                            <li class=""><a href="/VideoPage/VideoHome.aspx"><i class="icon-folder-open icon-white section-icon">
                            </i>视频</a> </li>
                            <li class=""><a href="/Message/MessageReceive.aspx"><i class="icon-edit icon-white section-icon">
                            </i>消息管理</a> </li>
                            <li class=""><a href="/VideoPage/MyVideoAlbumsManage.aspx"><i class="icon-play-circle icon-white section-icon">
                            </i>我的视频发布</a> </li>
                            <li class="active"><a href="/xwbemo1/UserInfoCheck.aspx"><i class="icon-edit icon-white section-icon">
                            </i>我的用户信息</a> </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <%--/这是顶上的导航栏--%>
    <div class="container">
        <div class="row">
            <div class="span3">
                <ul class="breadcrumb">
                    <li class="active"><a href="MyVideoAlbumsManage.aspx">我的专辑</a> <span class="divider">
                        /</span></li>
                </ul>
            </div>
            <div class="span4 pull-right">
                <span class="videoTap">视频: 8 | 总时长: 28:44 | 总播放: 516,474 | 创建: 1天前 | 更新: 1小时前</span>
            </div>
        </div>
        <div class="row">
            <div class="span12">
                <div class="row">
                    <div class="well well-small">
                        <div class="row">
                            <div class="span1">
                                <span class="videoNormalType">专辑列表</span></div>
                            <div class="span2 pull-right">
                                <a href="VideoAlbumAdd.aspx" class="btn pull-right">添加专辑</a> <a href="VideoUpload.aspx"
                                    class="btn pull-right">上传视频</a></div>
                        </div>
                    </div>
                </div>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <div class="row">
                            <asp:Repeater ID="Album_List" runat="server" OnItemCommand="rpt_Album_ItemCommand">
                                <ItemTemplate>
                                    <div class="span2 text-center">
                                        <div class="row">
                                            <p>
                                                <a href="/VideoPage/MyVideosManage.aspx?AlbumID=<%# Eval("video_album_id") %>">
                                                    <img class="img-rounded" alt="" src='<%# Eval("album_path") %>' width="100px" height="200px" /></a></p>
                                            <p>
                                                <a href="/VideoPage/MyVideosManage.aspx?AlbumID=<%# Eval("video_album_id") %>"><span
                                                    class="videoTitle">
                                                    <%# Eval("album_name") %></span></a></p>
                                            <p>
                                                <a href=""><span class="videoUsername">用户名：<%# Eval("album_user") %></span></a></p>
                                            <p>
                                            </p>
                                            <p>
                                                <a href="#reNameModel<%#(Container as RepeaterItem).ItemIndex %>" data-toggle="modal">
                                                    <span class="videoOperater">重命名</span></a>&nbsp <a href=""><span class="videoOperater">
                                                        修改</span></a> &nbsp <a href="#delModel<%#(Container as RepeaterItem).ItemIndex %>"
                                                            data-toggle="modal"><span class="videoOperater">删除</span></a>
                                            </p>
                                        </div>
                                    </div>
                                    <%--重命名对话框--%>
                                    <div id="reNameModel<%#(Container as RepeaterItem).ItemIndex %>" class="modal hide fade"
                                        tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                                        <div class="modal-header">
                                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                                                ×</button>
                                            <h3 id="H6">
                                                重命名该视频</h3>
                                        </div>
                                        <div class="modal-body">
                                            <p>
                                                视频名称：</p>
                                            <p>
                                                <input type="text" runat="server" id="text_Rename" placeholder="起个什么名字好呢？" value='<%# Eval("album_name") %>' /></p>
                                        </div>
                                        <div class="modal-footer">
                                            <button class="btn" data-dismiss="modal" aria-hidden="true">
                                                关闭</button>
                                            <asp:Button ID="btn_RenameOK" CssClass="btn btn-primary" runat="server" Text="确定"
                                                CommandName="btn_RenameOK" CommandArgument='<%# Eval("video_album_id")+","+(Container as RepeaterItem).ItemIndex%>' />
                                        </div>
                                    </div>
                                    <%--/重命名对话框--%>
                                    <%--删除对话框--%>
                                    <div id="delModel<%#(Container as RepeaterItem).ItemIndex %>" class="modal hide fade"
                                        tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                                        <div class="modal-header">
                                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                                                ×</button>
                                            <h3 id="H10">
                                                删除专辑警告</h3>
                                        </div>
                                        <div class="modal-body">
                                            <p>
                                                您确定要删除这个专辑？这个专辑包含的所有视频将全部删除。</p>
                                            <p>
                                                专辑名称：<%# Eval("album_name") %></p>
                                        </div>
                                        <div class="modal-footer">
                                            <button class="btn" data-dismiss="modal" aria-hidden="true">
                                                关闭</button>
                                            <asp:Button ID="btn_Delete" runat="server" CssClass="btn btn-primary" CommandName="btn_DeleteVideo"
                                                CommandArgument='<%# Eval("video_album_id") %>' Text="删除" data-dismiss="modal"
                                                aria-hidden="true"></asp:Button>
                                        </div>
                                    </div>
                                    <%--/删除对话框--%>
                                </ItemTemplate>
                            </asp:Repeater>
                        </div>
                        <div class="row">
                            <div class="pagination pull-right">
                                <ul>
                                    <li><a href="#">上一页</a></li>
                                    <li><a href="#">1</a></li>
                                    <li><a href="#">2</a></li>
                                    <li><a href="#">3</a></li>
                                    <li><a href="#">4</a></li>
                                    <li><a href="#">5</a></li>
                                    <li><a href="#">6</a></li>
                                    <li><a href="#">7</a></li>
                                    <li><a href="#">8</a></li>
                                    <li><a href="#">9</a></li>
                                    <li><a href="#">10</a></li>
                                    <li><a href="#">下一页</a></li>
                                </ul>
                            </div>
                        </div>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
        </div>
    </div>
    </form>
    <script src="../js/jquery-2.0.0.min.js" type="text/javascript"></script>
    <script src="../js/bootstrap.min.js" type="text/javascript"></script>
</body>
</html>
